package filters

import (
	"gitchina/CPTT4WeChat/util"
	"github.com/astaxie/beego"
	"github.com/astaxie/beego/context"
)

var DebugFilterFunc = func(ctx *context.Context) {
	if beego.BConfig.RunMode != "prod" {
		util.GetLogger().Debug("=================>header:%v", ctx.Request.Header)
		util.GetLogger().Debug("=============>url:%s | body=%s", ctx.Input.URI(), string(ctx.Input.RequestBody))
	}
}
